package com.agile.leetcode.hutool.setting;

import cn.hutool.setting.Setting;
import org.junit.Test;

/**
 * @Author KD
 * @Date 2021/2/1 16:50
 */
public class SettingDemo {
    @Test
    public void test() {
        // 获取配置文件
        Setting setting = new Setting("config/info.properties");
        // 拿到名称
        String name = setting.get("name");
        System.out.println(name);
        // 设置自动加载
        setting.autoLoad(true);
        System.out.println(setting.get("name"));
        System.out.println(setting.getGroups());
    }
}
